package com.xk.demo.spring.security;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

public class GdmtUserEntity extends User {
    private String userUuid;
    public GdmtUserEntity(String username, String password,String userUuid, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
        this.userUuid=userUuid;
    }

    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid;
    }

    @Override
    public String toString() {
        return "GdmtUserEntity{" +
                "userUuid='" + userUuid + '\'' +
                '}';
    }
}
